﻿using System.Diagnostics;
using UnityEngine;

namespace Smart.Model
{
    public static class Logger
    {
        [Conditional("EnableLog")]
        public static void Log(string fmt)
        {
            UnityEngine.Debug.Log(fmt);
        }

        public static void LogError(string fmt)
        {
            UnityEngine.Debug.LogError(fmt);
        }

        [Conditional("EnableLog")]
        public static void LogModel(int modelId, string fmt)
        {
            UnityEngine.Debug.Log($"<color=#003dee>[model:{modelId}]:[{fmt}]</color>");
        }

        public static void LogModelError(int modelId, string fmt)
        {
            UnityEngine.Debug.LogError($"<color=#003dee>[model:{modelId}]:[{fmt}]</color>");
        }
    }
}